package com.googlecode.cswish.model;

import java.util.HashMap;
import java.util.Map;

public class MapContext {

	private Map<String, Object> context;
	
	public MapContext() {
		this.context = new HashMap<String, Object>();
	}
	
	public MapContext(Map<String, Object> context) {
		this.context = context;
	}
	
	public Object get(String key) {
		return this.context.get(key);
	}
	
	public void put(String key, Object value) {
		this.context.put(key, value);
	}
	
	public boolean contains(String key) {
		return this.context.containsKey(key);
	}
}